var express = require('express');
var router = express.Router();
const mongoose = require('mongoose')

mongoose.connect('mongodb://localhost:27018/vue_project', { useNewUrlParser: true, useUnifiedTopology: true }, function(err) {
    if (err) {
        console.log(err)
    }
    console.log('数据库连接成功')
})
module.exports = router